
#include "PermutationsGroup.h"

using namespace std;

PermutationGroup::PermutationGroup(Molecule* mol): _firstPerm(true){
	_mol = new Molecule(*mol);
	int molSize = _mol->_size;
	int numOfGroups = _mol->_groupNum;
	for (int i=0; i<numOfGroups; ++i){
		_permGroup.push_back(new permutation(molSize,_mol->getClassSize(i)));
	}

}


PermutationGroup::~PermutationGroup(){
	for (int i=0; i<_mol->_groupNum; ++i){
		delete _permGroup[i];
	}
	delete _mol;
}
